﻿using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _10_06Prism模块化ModuleC.ViewModels;
using _10_06Prism模块化ModuleC.Views;
using Prism.Mvvm;

namespace _10_06Prism模块化ModuleC
{
	public class ModuleCProfile : IModule
	{
		public void OnInitialized(IContainerProvider containerProvider)
		{

		}

		public void RegisterTypes(IContainerRegistry containerRegistry)
		{
		//一般view 和model的匹配是用代码去设置，这样就相当于设置了上下文
		//不在xaml上用xmlns:prism="http://prismlibrary.com/"
		//prism: ViewModelLocator.AutoWireViewModel = "True"  自动识别
			containerRegistry.RegisterForNavigation<ViewC,ViewCViewModel>();

		}
	}
}
